package moe.oil.exception.school;

import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;

public class SchoolNameNullException extends ServiceException {
    public SchoolNameNullException(String name) {
        super(
                String.format("School name %s is null", name),
                HttpStatus.BAD_REQUEST,
                ErrorType.MUST_BE_NOT_NULL,
                name
        );
    }
}
